import type { DepartData, PatientConsultOrderParams } from "@/types/Department"
import { request } from "@/utils/request"

/**
 * 获取科室列表
 */
export const getDepAllAPI = () => {
  return request<DepartData[]>('/dep/all', 'GET')
}

/**
 * 获取患者咨询订单
 */
export const getPatientConsultOrderAPI = (params: PatientConsultOrderParams) => {
  return request<{ id: string }>('/patient/consult/order', 'POST', params)
}
